<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
  <meta charset="UTF-8">
  <title>thymelaf</title>
</head>
<body>
<h1 style="margin-left: 400px" th:text="${s}"></h1>

<div style="margin-left: 400px">
  <table border="1px">
    <tr>
      <td>userid</td>
      <td>username</td>
      <td>userpass</td>
      <td>usermail</td>
      <td>userphone</td>
      <td>userused</td>
    </tr>
    <tr th:each="ad:${ad}">
      <td th:text="${ad.userid}"></td>
      <td th:text="${ad.username}"></td>
      <td th:text="${ad.userpass}"></td>
      <td th:text="${ad.usermail}"></td>
      <td th:text="${ad.userphone}"></td>
      <td th:text="${ad.userused}"></td>
      <td>
        <a  role="button" th:href="@{/toupdateStudent/${student.getId()}}">修改</a>
        <a  role="button" th:href="@{/delete(userid=${ad.getUserid()})}">删除</a>
      </td>
    </tr>
  </table>
</div>

<div >
  <a  role="button" th:href="@{/tadd}">添加员工</a>
  <a  role="button" th:href="@{/toindex}">返回首页</a>
</div>


</body>
</html>